import Utils.DocxReplaceUtil;

import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * @author YuanX
 * @version 1.0
 * @date 2022/09/15
 */
public class run {
    public static void main(String[] args) throws IOException {
        Load();
    }

    private static void Load() throws IOException {
        Map<String,Object> param=new HashMap<String, Object>();
        param.put("year","2022");
        param.put("area","测试区");
        param.put("startCount","20");
        param.put("totalInvestment","989.98");
        param.put("company","天选之人集团");
        SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");
        param.put("nowTime",sdf.format(new Date()));
        DocxReplaceUtil docxReplaceUtil = new DocxReplaceUtil();
        docxReplaceUtil.replaceDefineVar(param,"D:\\A.docx");
    }
}
